<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>代理关系管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form" wid100>
  <input type="hidden" name="userId" value="$!{userId}"/>
  <input type="hidden" name="relationUserId" value="$!{relationUserId}"/>
  <div class="layui-card">
    <div class="layui-card-header">用户信息
		<div style="float: right;">
        	<button class="layui-btn layui-btn-sm LAY-btn-fun" data-type="updateRoleType">修改角色</button>
      	</div>
	</div>
    <div class="layui-card-body">
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">用户ID</label>
            <div class="layui-form-mid layui-word-aux">$!{relationUser.id}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">用户姓名</label>
            <div class="layui-form-mid layui-word-aux">$!{relationUser.name}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">用户手机号</label>
            <div class="layui-form-mid layui-word-aux">$!{relationUser.phone}</div>
          </div>
        </div>
      </div>
	      <div class="layui-row">
	        <div class="layui-col-sm3">
	          <div class="layui-form-item">
	            <label class="layui-form-label">角色</label>
	            <div class="layui-form-mid layui-word-aux">$!{roleTypeName}</div>
	          </div>
	        </div>
	        <div class="layui-col-sm3">
	          <div class="layui-form-item">
	            <label class="layui-form-label">是否可部署</label>
				#if($canUndeployDevice == 1)
	            <div class="layui-form-mid layui-word-aux">可以</div>
				#else
				<div class="layui-form-mid layui-word-aux">不可以</div>
				#end
	          </div>
	        </div>
	        <div class="layui-col-sm6">
	          <div class="layui-form-item">
	            <label class="layui-form-label">备注</label>
				#if($note)
	            <div class="layui-form-mid layui-word-aux">$!{note}</div>
				#else
				<div class="layui-form-mid layui-word-aux">---</div>
				#end
	          </div>
	        </div>
		</div>
  	    <div class="layui-row">
  	        <div class="layui-col-sm4">
  	          <div class="layui-form-item">
  	            <label class="layui-form-label">关联网点数</label>
  	            <div class="layui-form-mid layui-word-aux">$!{placeCount}</div>
  	          </div>
  	        </div>
  	        <div class="layui-col-sm4">
  	          <div class="layui-form-item">
  	            <label class="layui-form-label">关联设备数</label>
  	            <div class="layui-form-mid layui-word-aux">$!{deviceCount}</div>
  	          </div>
  	    </div>
  	  </div>
        <div class="layui-row">
          <div class="layui-col-sm4">
            <div class="layui-form-item">
              <label class="layui-form-label">关联代理ID</label>
              <div class="layui-form-mid layui-word-aux">$!{agent.id}</div>
            </div>
          </div>
          <div class="layui-col-sm4">
            <div class="layui-form-item">
              <label class="layui-form-label">关联代理姓名</label>
              <div class="layui-form-mid layui-word-aux">$!{agent.name}</div>
            </div>
          </div>
          <div class="layui-col-sm4">
            <div class="layui-form-item">
              <label class="layui-form-label">关联代理手机号</label>
              <div class="layui-form-mid layui-word-aux">$!{agent.phone}</div>
            </div>
          </div>
      </div>
      <div class="layui-row">
		#if($lastLoginDate)
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">最后登陆</label>
            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($lastLoginDate,'yyyy-MM-dd HH:mm:ss')}</div>
          </div>
        </div>
		#end
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">最后修改</label>
            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($updateDate,'yyyy-MM-dd HH:mm:ss')}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">创建时间</label>
            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($createDate,'yyyy-MM-dd HH:mm:ss')}</div>
          </div>
        </div>
      </div>
    </div><!-- /.layui-card-body -->
  </div><!-- /.layui-card -->
  <div class="layui-tab layui-tab-card" lay-filter="tab-info">
      <ul class="layui-tab-title">
		<li class="layui-this">业务配置</li>
  		<li>功能模块</li>
		<li>关联设备</li>
		<li>关联网点</li>
      </ul>
      <div class="layui-tab-content" style="padding:0;">
  	  	<div class="layui-tab-item layui-show">
         <div class="layui-card">
            <div class="layui-card-body">
  			<div style="padding-bottom: 10px;">
                <button class="layui-btn layui-btn-sm LAY-btn-fun" data-type="addBusiConfig">新增业务配置</button>
              </div>
              <table id="LAY-table" lay-filter="LAY-table"></table>
            </div>
          </div>
        </div><!--/.layui-tab-item-->
		<div class="layui-tab-item">
         <div class="layui-card">
            <div class="layui-card-body">
  			<div style="padding-bottom: 10px;">
                <button class="layui-btn layui-btn-sm LAY-btn-fun" data-type="addFuncModel">新增功能模块</button>
              </div>
              <table id="LAY-table-func-model" lay-filter="LAY-table-func-model"></table>
            </div>
          </div>
        </div><!--/.layui-tab-item-->
		<div class="layui-tab-item">
         <div class="layui-card">
            <div class="layui-card-body">
              <table id="LAY-table-device" lay-filter="LAY-table-device"></table>
            </div>
          </div>
        </div><!--/.layui-tab-item-->
		<div class="layui-tab-item">
         <div class="layui-card">
            <div class="layui-card-body">
              <table id="LAY-table-place" lay-filter="LAY-table-place"></table>
            </div>
          </div>
        </div><!--/.layui-tab-item-->
      </div>
  </div><!--/.layui-tab -->
</div>
#parse('/footFiles.html')
<script>
layui.config({
  base: '$!{webRoot}/layuiadmin/'
  ,webRoot:'$!{webRoot}'
  ,resDomain:'$!{resDomain}'
}).extend({
  index: 'lib/index'
  ,agent_relation_user:'agent/agent_relation_user'
}).use(['index', 'form', 'agent_relation_user'])
</script>
</body>
</html>